x86/hvm: Add check for cpu_has_vmx_virt_exceptions
authorAlexandru Isaila <aisaila@bitdefender.com>
Tue, 25 Sep 2018 09:10:38 +0000 (12:10 +0300)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 25 Sep 2018 10:59:32 +0000 (11:59 +0100)
commita2eb46491e28079debc39488a7e23ed76cb5b003
treeeccdade3a51bcaeed5d75826cd6ff116fc2c2c30
parentec6662445b1ec9231ca69583863de644206ef313
x86/hvm: Add check for cpu_has_vmx_virt_exceptions

This is useful so HVMOP_altp2m_vcpu_enable_notify will fail and not
silently succeed. It save a call to HVMOP_altp2m_set_suppress_ve.

Signed-off-by: Alexandru Isaila <aisaila@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c